package com.springboot.util;

import lombok.Getter;
import lombok.Setter;

/**
 * @author yexi
 */
@Setter
@Getter

public class JsonResult {
    private int code;//状态码，200 成功，500 失败，来自未来的新增，所以其实并没有用上
    private Object data;//返回数据,来自未来的新增，所以其实并没有用上

    private boolean success = true;
    private String msg;//提示信息

    public JsonResult(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    private JsonResult() {

    }

    public static JsonResult success() {
        return new JsonResult();
    }
}